//
//  NoticeViewController.m
//  Eath
//
//  Created by yuhaya on 10/3/14.
//  Copyright (c) 2014 yuhaya. All rights reserved.
//

#import "NoticeNavViewController.h"
#import "KL_ImagesZoomController.h"


@interface NoticeNavViewController () 

@end

@implementation NoticeNavViewController

- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        
        self.tabBarItem.title = @"通告";
        self.tabBarItem.image = [UIImage imageNamed:@"notice"];
        [self.tabBarItem.image imageWithRenderingMode:UIImageRenderingModeAutomatic];
        self.tabBarItem.selectedImage = [UIImage imageNamed:@"notice"];
        [self.tabBarItem.selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
        
    }
    return self;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    // Do any additional setup after loading the view from its nib.
}



- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

-(void)showImgWith:(NSMutableArray *)imgs andIndex:(NSInteger)index
{
    KL_ImagesZoomController *img_view = [[KL_ImagesZoomController alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height )imgViewSize:CGSizeZero];
    [self.view addSubview:img_view];
    [img_view updateImageDate:imgs selectIndex:index];
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
